chore(extract): clean destination directory if error happens