Sends a terminate command to the simulation. There is no guarantee on when this command will be actually processed.