Properly handle WorldSocket shutdown.

This fixes an exception on shutdown, trying to still read from a Closed socket.