acording to the docs on service lifecycle i should be able to implement RegistryShutdownListener and tidy up my re开发者_开发问答sources (in this case, shutdown a threadpool) however it is throwing an