webcatch: Unify the failure report to send email and ensure lock file is deleted