Added shutdown hook sync example