cbpos.terminate() now actually terminates the app, not just cleanup