added pause to end of program execution when warning are displayed