I agree with you it should be an error, but in such a case you should stop the execution:

```javascript
return process.exit(1);
```