Fix for Splash screen fails closing

Fixes #1095