have goTo return the exited states

returning the state itself was not helpful
knowing the exited states can be helpful if you want to go back to them