fix missing wakeup for consumer when terminated