Terminate worker after parsing is complete.
Merge pull request #591 from tobeytailor/parser

Terminate worker after parsing is complete