deactivate the heartbeating when an agent is running - fixes #212