add @long_run decorator for early termination