private void FinishCommand() { lock (_lock) { _command = null; _state = CommandParseState.Idle; _commandParser.Cleanup(); } }