added a rescue nil to the destroy and update actions