Now it throws an error if something went wrong. And the windows are modal.