Handle exceptions raised during Net::HTTP.start request

Buildpack fails with an exception instead of falling back to using buildpack cache when connection to a host fails during Net::HTTP.start call. This change is to handle Net::HTTP.start failure properly.