adding receiveTimeout setting, fixing connection failure handling for
JAXRS