Make the blpop works once then stop the program.