add exception handle for KeyControlInterrupt