wait for bosh client to be closed after stream error