Set ContextWaiter's var stopped to be true if wait() has been triggered

[STREAMING-58]: https://spark-project.atlassian.net/browse/STREAMING-58