remove shutdown hook