add explain to clearoutgoingmessage function.