Refined receive loop, as receive on a  closed socket spewed errors for a while after close.  Also, reduced (but not completely removed) a dependency on Network.Simple.