Fix threadEvent cancelling

segfault plus loin...