Fixed error handling for cloud delete operation