Net::SSH2 connect method does not set the object error on failure