print message when exiting main program