Emit a close event when the underlying TCP socket is closed