Deals with Windows crash on PortAllocator cleanup