def close(self):
        """
        Starts closing the HighFive master. The server will be closed and
        all queued job sets will be cancelled.
        """

        if self._closed:
            return

        self._closed = True

        self._server.close()
        self._manager.close()
        for worker in self._workers:
            worker.close()