Properly send signals to subprocesses when interrupted.