change 'reload' back to 'run' when window closes (manually or otherwise)