@Test
public void exceptionsAreNotRethrown()  {

    // given
    String expectedMessage = UUID.randomUUID().toString();
    DelayedShutdown shutdown = new DelayedShutdown(() -> {throw new NullPointerException(expectedMessage);});
    // when
    shutdown.start(false);
}