Issue #22 addShutdownHook() added