Fix heartbeat responses not being sent properly resulting in periodic disconnects