Some code cleanup. Do not assume unix connection can handle very long messages in one read / write