XWIKI-8945: Call dispose() on Components before XWiki shutdown to cleanup resources