Check that the signal number is zero before checking the exit status