fix wrong mark as temporary stopped when shutting down