Properly react on keyboard interruption.