Fail to start application when running Test suites

Hi guys, I’m having issue with the Start application when running my Test suites.
Sometime this error appears randomly and really annoying.

Original error: UiAutomator2 Server cannot start because the local port #8243 is busy. Make sure the port you provide via ‘systemPort’ capability is not occupied. This situation might often be a result of an inaccurate sessions management, e.g. old automation sessions on the same device must always be closed before starting new ones.

I have already addde the appWaitActivity on the Desired Capability

Is anyone having this issue or have any solution?

Real device: Samsung Galaxy S7 Edge
Macmini M1

Hi,

Do you make sure that your sessions have run separately?