APEC closes in Sydney