Catch the ObjectNotFound exception when deleting