bugfix for task race condition
Merge pull request #114 from spottradingllc/bugfix-multiple-tasks

bugfix for task race condition