Got rid of shutdown hook