Implement a ping timeout.