make should_terminate private to the sighandler file

see #1