Fix style in connector module

This PR cleanes the style in the connector module (the branchname may not be
appropriate here..., please don't mind!).

This PR also introduces a logic-fix, so it is not _entirely_ about style.

@neithernut Please review carefully (the logic-fix), I am (/ we are)
not entirely sure about it,...
This isn't neccessary, as it does exactly what it should now. What I meant when I said that this was overlooked was that I overlook this when I was looking at EOF issues.