add middleware to catch the exceptions
add middleware to catch the exceptions

Signed-off-by: David A. Cuadrado <9e86d6d2f3901859480d56aec66da07500c6a5df@gmail.com>

ricodigo/bug_hunter,ricodigo/bug_hunter