stupid socket close bug