Force flush of stdout/stderr.
Create mail.log file for future inclusion in user email.