dispatch beacon,sendemail and removedoc from daemon