Fix bug : window service crash and add greatful close
Merge pull request #17 from Attention/master

Fix bug : window service crash and add greatful close