Fixed stop button concurrency issue.