Close race condition and allow graceful exit
Close race condition and allow graceful exit

send may cause error and close socket, it may corrput asyncio state during open_connection, so move send inside asyncio
give pipes chances to close and quit during Ctrl+C
zhanglei002/socks2http