Adding a "catch all exceptions" to all the APIs