code: def _close_socket(self):
          
          try:
              self.socket.shutdown(socket.SHUT_RDWR)
          except (OSError, socket.error):
              pass
          self.socket.close()
docs: Shutdown and close the Socket.
  
          :return: