cleanup .unwrap and .unwrap_err fixing io tests and tcp.rs