Refactoring Exit.