Closing Down the Streams and Sockets