title: Stop twisted reactor on a condition
body: <p>Is there a way to stop the twisted reactor when a certain condition is reached. For example, if a variable is set to certain value, then the reactor should stop?</p>