wrap deletes in a try/catch, fixes #195