Mailout ajax process timing correction and log file added in debug mode.