[CXF-5730] Calling Server destroy when the context is destroyed, applying a slightly modified patch from Florian Léger