Clear close timer in socket if terminate is called more than once in rapid succession.