before progressing to COMPLETED state and issue state change notification to portal. Also make state change report to be a single line for ease of grep'ing log file.