Added error handling for missing files when user attempts to delete