connection errors now reject the promise instead the error bubbling up to the node process