1) align the test set every k iterations. 2) intercept SIGINT.