Is there a way Open and Close the app under test?

there is no problem with “driver.launchApp();” for us. looks like problem in your capabilities when you start test. we use above with normal app start. our start cases are -> Different capabilities for different scenarios