Changed socket channels to shutdown only when underlying sockets are connected.