add shutdownHook