adding state while storing start records, ignoring storing start records if the state is already stopped or error