longjob - monitor a long running job and send mail after it completes