Added connection refused rescues for puppet api