Any way to catch runtime errors in a DLL?