Ctrl + C can not terminate the program. The program may block the signal set inside may be blocked in the consumer.poll () call, this method to solve