CUDA checking for exceptions/errors