Appium on a headless android emulator (with no-window flag) inconsistent

Test works fine without the no-window flag active in android emulator but fails otherwise; any thoughts as to why?