#18 Add loading screen when the application exits