you want the .on('error'... callback between here so that we can escape if something goes wrong - otherwise it will hang.