Does halite kill the bot when the game has completed?


I’m working on a bot design that requires a small amount of work to be done at the end of each game. When I implemented a solution that runs when exit() is run in python, it is meant to execute a piece of code and does so successfully when run standalone. When executed in halite, using ./, it doesn’t exit the environment in the same way and doesn’t attempt the tasks it needs to do before closing.

If this is a feature of halite, could someone tell me how to change this for the local version? The finishing code only needs to run when bot is run locally.

Many thanks in advance!