Fix race condition in client teardown
Merge pull request #46 from ska-sa/fix-client-teardown-racecondition

Fix race condition in client teardown