Kill the process at the end of the game