Dispose the base before the connection because it needs it