Added error handler when moc save fails