Add ability to reset stop flags.

Reset stop flags when listen is called.