Added signal clearance to interrupt handling - the second time ctrl-c is pressed, the program will terminate