fix cases where ocl events not freed, fixes #17 fixes #18