Adds a different return code for timeouts versus connection refusals and uses more common code getlantern/lantern#1794