Fix NoMethodError when unable to connect

Derp.