Changing the manner in which the program ends