added async error messages and logging flag (processstatustransitions)