Reset router state on exception