Kfsio library: net error simulator: minor code cleanup.