It's been discussed at [spring-cloud-commons](https://github.com/spring-cloud/spring-cloud-commons/issues/111) but I couldn't find any history here. Does it help to add a simple check at least to get fewer exceptions: ``` public static boolean isShutdownInProgress() { try { Thread thread = new Thread(); Runtime.getRuntime().addShutdownHook(thread); Runtime.getRuntime().removeShutdownHook(thread); return false; } catch (IllegalStateException e) { return true; } }
It's been discussed at spring-cloud-commons but I couldn't find any history here.
Does it help to add a simple check at least to get fewer exceptions: