def METHOD_NAME(self):
    if self.node:
        self.loop.run_until_complete(self.node.stop())
        del self.node
    if self.temp_storage.is_dir():
        shutil.rmtree(self.temp_storage)
    try:
        self.loop.run_until_complete(self.loop.shutdown_asyncgens())
        self.loop.close()
    except RuntimeError:
        pass