Made simulator not run when program not running