White Sox beat Cubs 3-2 in Kerry Wood's finale