Ensure that connections are eventually closed using a heartbeat.