Clean up run() in NetworkIO