[FLINK-1063] Revert race introducing commit

This reverts "[FLINK-998] Close network connections when idle" [1] as
it introduced a race condition into the network stack, which might
result in a re-ordering of network envelopes.

[1] 52512636444902497e47ccbfb1cabaffb3e23343
[FLINK-925] Support KeySelector function returning Tuple types
[FLINK-925] Extended for distinct operator and added test cases

This closes #59