Moved handling of timedout heartbeats to heartbeat.c