Added a popup box for errors that should be reported to the user