- added flag to disable shutdown hook creation