use custom json recovery middleware
Make all 500 errors use new recovery middleware by panicking.