wait for bosh client to be closed