Bugfix in heartbeat timer, prevented connection_lost event being fired twice.