The companion closes as soon as the app starts

Did you tried this :