Fixed signal handling checks.