Check for the existance of the folder via EXIST before doing the DELPOROGRAMGROUP. Maybe the profile is not fully loaded by the time the DELPROGRAMGROUP is issued. However that would contradict the statement that RunLoginScriptSync=1 is implemented for all users.
_________________________
There are two types of vessels, submarines and targets.