LT-15684: Runtime error when stopping parser

* stop parser thread before disposing of it

Change-Id: Ida5e7938792e211d20fa90ccde5fd27c1a92a513