heartbeat cleanup