added mailer cleanup to scripts