Clear close timer in socket if terminate is called more than once in rapid succession.
Merge branch 'fixed_server_close_hanging' of https://github.com/kenpratt/ws