Add error handler in app.js