How to capture MentalRay errors in 3D Studio Max