Clean up CUDA runtime errors into exceptions