Isn't most of the blocking related to onDeploymentStop which can be called other ways beside stop of UndertowEventHandlerAdapter?

If UndertowEventListener allows impls to block, then whatever calls the listeners needs to be sure it doesn't do so in an MSC thread.

^^^ doesn't mean there's no issue with UndertowEventHandlerAdapter.stop() as well; just that it may be broader.