add: detect whether the order automation terminates correctly.