adding mail_on_fail to management commands