def _close(self): if hasattr(self, 'mc_process') and self.mc_process: minecraft_py.stop(self.mc_process)
import logging logging.basicConfig(level=logging.DEBUG) import minecraft_py proc, port = minecraft_py.start() minecraft_py.stop(proc)