Decouple connection logic and flag parsing from HandleFlags.
Args parameter no longer needed.