Throw exception from connection failure.