Fixed a minor issue with the splashscreen not closing properly