public async Task Invoke(IncomingContext context, Func<Task> next) { try { await next(); } catch (Exception e) { e.StackTrace.Output(); } countdown.Signal(); } }