Fix a signal cleanup problem.