Add error modal if saving when exiting failed.