ConnectionSafe class can handle socket errors, thus blocking response until server answers