added shutdown option tot he nano sockets