IRConn: Fixed handling of disconnects