I have some UI tests (written using FlaUI) that will pass locally but will fail on TeamCity. When I tried watching the tests run on the remote build agent through remote desktop to see the error, I realized that the tests will pass if the remote desktop app is open and not minimized. This is only a small subset of my tests that fail as most of them pass in any condition. What could be causing this?