Reset state on `start()` end
Merge pull request #944 from anton-ryzhov/reset_flags

Reset state on `start()` end