added confirmExit