Generalizes exit code for captured signals