ensure that the IOServer thread terminates
Merge pull request #440 from dwightguth/ioserver

ensure that the IOServer thread terminates