server shutdown hook added