ticket:3 remove junk exception from middleware
Merge branch 't3_middleware'