projectwonder/wonder — pull request #329 by maiksd (2012-11-23 10:41:43+00:00)
Title: New class ERXShutdownHook to use in place of plain Threads with Runtime.addShutdownHook

This can be used to register shutdown hooks instead of directly using Runtime.addShutdownHook with plain Thread objects. The main benefit is a final line in the logfile that is ensured to be written as the last thing the process does at all before terminating, to be used as a clear indicator that the process is gone.

Details are in the javadoc.