Developing OpenCL wrapper with proper events to avoid runtime crash
Changed event management in the wrapper