fixed the signal handler warning