- added error handlers to save and delete methods.