Clear a heartbeat timer on close event