adds basic exception handler to api manager