Handle KeyboardInterrupt while execution