Better placing + testability of socket as a cli parameter
Perform actual connection (+ increase test coverage)