add Shutdownhook in main project