Close socks stream after writing, make connection more efficiency