Add Flow.terminate()

The terminate method can be used to interrupt the flow at a given point.