move Exit to sim, update Miner.Shutdown to use it