releasing all OpenCL events so as to avoid memory leaks on Nvidia system