Finalize std and err outputs management. Email a report if errors where encountered.