def close(self):
        """
        Quit the connection with mod-host
        """
        if self.connection is not None:
            self.connection.close()
        if self.connection_fd is not None:
            self.connection_fd.close()
Quit the connection with mod-host