Wrap callbacks with stack_context.wrap more aggressively (fixes tornado "headers already written" bug)