try this to handle errors better.
https://github.com/expressjs/errorhandleror
https://www.npmjs.org/package/express-error-handler