Modified Signal Handler

Modified the signal handler to kill all threads on keyboard interrupt.