So, if cudaminer exited on error, I could get more Khash, and only lose a minute of hashing every few hours.
Thanks!!
it would be easy to add an exit() statement into the error checking macro.

not sure if that would exit cleanly without crashing the driver though.
But something like this should be feasible, e.g. setting a global error condition flag that makes the main thread initiate a shutdown.
Christian