send mail with tail logfile content when process stopped