Fixes bug in exception handling introduced in v3.0.4.
Fixed an uncaught exception as well as warnings from trying to write to an invalid socket when a connection was actively refused. These caused the querying process to stop.
Fixed an uncaught exception as well as warnings from trying to write to an invalid socket when a connection was actively refused. These caused the querying process to stop.