Added syncronized stopping when done.