don't send heartbeat if socket is disconnected