Better error mailer and episode detection