Error: Could not establish connection. Receiving end does not exist. while executing the macro through command line

Error: Could not establish connection. Receiving end does not exist. while executing the macro through command line

When do you see this error? Do you always get it, or “only” sometimes?