This reverts the change made in 693fef1964 Not sure why this is needed, but taking this out sometimes causes `exceptions.AttributeError: 'Port' object has no attribute 'socket'` to happen on shutdown.
693fef1964