Adds a server heartbeat to better detect when clients disconnect