Please don't add any code. Kinda fixed the signal handler but got a
bug in the scanner.