Adding better exception handling for dataset deletion