rescue all middleware handlers gracefully.