Correct handling of emergency exit.