This was wrong but it didn't really matter since it was only used when the exception escaped the state machine and at point we set the GState to ST_CLOSED.