Prevent corruption of ansi interpreter state.