check TERM signal at each iteration

- check TERM signal more frequently
  - when submitting runs, TERM signal is checked before each run is submitted
  - when observing host, TERM signal is checked before each run is included