servers: Simplify InterruptedException handling in HeartbeatThread.