XWIKI-9297: The packager maven plugin never dispose the context and components it creates
* more cleanup
(cherry picked from commit cf1cffd6965e042ce231f2b67ed441d6edbd81ad)