socket close_wait fix