Added express middleware error handeling. Now you call next(err) insted of calling res.send(500...