Failure mail logging added