Middleware for catching the last error in your express.js apps