use global variable ExitNow instead of returning INT_QUIT.