1. fix issue: Hangs Sublime Text on showing 'take a rest' dialog
2. also update the logic of cancel the pomorodo function.