0dacf6edc3
Usually, when the sliding sync session expires, it leads the state to be `Error`, thus some actions (like refreshing the lists) are executed. However, if the sync-loop has been stopped manually, the state is `Terminated`, and when the session is forced to expire, the state remains `Terminated`, thus the actions aren't executed as expected. Consequently, this patch updates the state to `Error` manually.