This avoids infinite recursion if the printing causes another signal.