Support canceling worker thread
Merge branch 'master' of https://github.com/tianrolin/Plugin