Check req->s instead of s to know if the state needs to be cleaned up first.
This error is from a refactor I did years ago. Oops!