terminate on OpenCL error
adds cl-/glFinish