Reset state when prompt starts.