Added exit function to the welcome screen.