fixed restart issue when spooler crashes