You should catch only the exception that is thrown when a file is deleted