When the app is running, how to properly handle "sonic connection is closed" error ? Can it implement `retry to connect`?