Remove ShutdownHook. It retains references when running under nailgun