log and exit for server error
use `res.sendErr` instead of overwriting `res.send`