Fix duo_mode issues related to termination and info messages.