Added support for shutting down sockets
This is necessary to gracefully terminate STREAM sockets, as otherwise clients may produce "Connection reset by peer" errors.
This is necessary to gracefully terminate STREAM sockets, as otherwise clients may produce "Connection reset by peer" errors.