see `.on('error')` below