fix closesocket bug, command_P