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
Merge pull request #207 from crest-cassia/more_frequent_term_check

check TERM signal at each iteration