"process no longer exists" error

Hello. I believe I followed all setup steps correctly but I am getting an error (process no longer exists) after the first episode when running the run.py in the random action template. I have changed nothing except the things mentioned in the setup.

[0] Episode complete
2022-07-27 13:21:38 DESKTOP-3751T5G minerl.env.malmo.instance.8a0c53[12120] DEBUG [13:21:38] [EnvServerSocketHandler/INFO]: Java has been asked to exit (code 0) by net.minecraftforge.fml.common.FMLCommonHandler.exitJava(FMLCommonHandler.java:665).
Failed to delete the temporary minecraft directory.
Traceback (most recent call last):

  File ~\Desktop\Projects\mineRL2022\basalt_2022_competition_submission_template\run.py:22 in <module>

  File ~\Desktop\Projects\mineRL2022\basalt_2022_competition_submission_template\test_BuildVillageHouse.py:47 in main

  File ~\anaconda3\lib\site-packages\gym\core.py:257 in close
    return self.env.close()

  File ~\anaconda3\lib\site-packages\gym\core.py:257 in close
    return self.env.close()

  File ~\anaconda3\lib\site-packages\gym\core.py:257 in close
    return self.env.close()

  File ~\anaconda3\lib\site-packages\minerl\env\_multiagent.py:673 in close

  File ~\anaconda3\lib\site-packages\minerl\env\malmo.py:620 in kill

  File ~\anaconda3\lib\site-packages\minerl\env\malmo.py:771 in _destruct

  File ~\anaconda3\lib\site-packages\minerl\utils\process_watcher.py:76 in reap_process_and_children
    procs = process.children(recursive=True)[::-1] + [process]

  File ~\anaconda3\lib\site-packages\psutil\__init__.py:271 in wrapper
    raise NoSuchProcess(self.pid, self._name)

NoSuchProcess: process no longer exists (pid=25876)

Hey there! The code is running correctly, it is just closing the environment that sometimes (or always) throws an error on Windows. You can ignore this error for now. If you want code to continue after calling env.close, wrap it around try-except blocks.