Exit bugfix.