add warning if not compiled with -threaded flag
simplified termination tests for newer signal model