handle string errors correctly in SyncError initialization (refs #376)
don't get stuck in "connected" state, if cleanup of previous session got interrupted by errors.