Considered registerShutdownHook example