I was thinking more of throwing an exception, but I'm not sure how exceptions are handled in ComponentRegistry.stop() so perhaps shutdownNow is a better idea.