[polyml] Controlling printing of exceptions.