Actually, through Stream.stop() it is possible to exit the context loop. However, since Stream.stop isn't async, it can be called internally after a new element is caught by the data stream. So we need a solution to stop the loop in the extact moment the function is called.