clear command queue on connect

Continuing a previous set of enqueued command when connecting is
considered harmful. It’s quite likely that there were some missed
commands on any machines using lookahead.
fixing yet more linter complaints