Fixed failure handling at window creation