use non windows API for closing a socket
use non windows API for closing a socket

MetacoSA/NBitcoin,thepunctuatedhorizon/BrickCoinAlpha.0.0.1,HermanSchoenfeld/NBitcoin,stratisproject/NStratis,lontivero/NBitcoin,dangershony/NStratis,MetacoSA/NBitcoin,NicolasDorier/NBitcoin