(i am not fully understood what happens there, but here some thought which might be useful).
��About that popup:
��- if its a warning, then you can see it in interactive mode.
in headless mode all warnings are ignored and program just continues to run.