Wrap delete in try/catch.