XWIKI-11107: Stopping XWiki frequently leads to error stack traces in the console/logs