Reworked Windows pipe class a bit and prevented it from crashing in d'tor.