Wrote self-terminating echo and added test which confirms old nio code has same issues on mac