This should probably switch back to the original window before raising exception