Splash screen fails closing

Fixes #1095