handle network connection errors properly
check `libthread.cpp`, make sure to loop over the multi handle and detect all errors for all connections.
issue