Modified rescue around delete method.