This change ensures that Registry has processed all events before continueing with the further processing.