added own shutdownhook