ensure that the IOServer thread terminates
refactor krun options to use JCommander