Fix broken signal handler setup