Update app.js

throw error and die instead of logging it