Emit close (again?) while writing on non-writable socket