test for OSError in terminate