Add try-catch around deletion