Change disconnect function to avoid CLOSE_WAIT

using net_smtp with a endless script, this net_socket cause a CLOSE_WAIT, this changes avoid this problem