Koa.js error handling middleware