Merge pull request #3 from zacharym/master

deletes the extra thread
catching toJSON error and restarting with next