internal void FinishRedirecting() { _state.CloseWriter(); //Pop previous state if it exists if (_states.Count != 0) { _state = (OutputState)_states.Pop(); _redirectState = RedirectState.Redirecting; } else { _state = null; _redirectState = RedirectState.Relaying; } }