Add an exception handling about raising the window