Clean up the heartbeat.