allow logging of exceptions in API handlers to screen/file