Use MVar to prevent Chan leaking
Merge pull request #1 from dogestreet/master

Use MVar to prevent Chan leaking