fixed uncaught error handling in model save