removed else in exit_or_sleep