Catching keyboard interrupt.