Safely close kazoo connections