communicator/ssh: Reset failure count if heartbeat works