class_docstr: Abstract class for implementing the strategy for launching the master instance of the cluster.
class_docstr_tok: ["Abstract","class","for","implementing","the","strategy","for","launching","the","master","instance","of","the","cluster","."]
docstr: Release all resources.
docstr_tok: ["Release","all","resources","."]
code: def cleanup(self) -> None:
      """Release all resources."""
      self.log.debug("Cleaning up MasterLauncher ...")
      if self._process:
          self._process.terminate()
  
imports: import atexit
  import logging
  from subprocess import Popen
  from typing import Dict, List, Optional, Union
  from lazycluster.exceptions import LazyclusterError
  from lazycluster.runtime_mgmt import RuntimeGroup
label_desc: Use image node_id 5 for calling the MasterLauncher obj's underlying member method code with example usage: obj.cleanup() without return types