Remember run state after restart