MercatorUi.Globals.MercatorTasksToMain.AllTasksFinished += (s, e) =>
{
    if (MercatorUi.Globals.MercatorTasksToMain.CurrentLogContainsErrors)
        MercatorUi.Globals.MercatorTasksToMain.CurrentLog.Append("\r\n\r\nWAARSCHUWING: dit logboek bevat fouten!");
};