Close splash screen before error dialog.