Changed performExit() in View into more graceful version.