try catch for download/delete