error handling for trash folder