Fix double-free when an unwrapped task is cancelled. Fixes #7