Run garbage collection during restart