throw exception if model save fails