Added Err logging for TCP server