Creating two appium drivers sometimes fails on the second

I have a test that checks the integration between two app.

I create an android-appium-drive. I install and run app A

I then

create an android-appium-driver. I install and run app B

Very often the second installation throws an exception:

15:57:57     org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
15:57:57     Build info: version: '2.47.1', revision: 'unknown', time: '2015-07-30 11:02:44'
15:57:57     System info: host: '', ip: '', 'Linux', os.arch: 'amd64', os.version: '3.2.5-gg1336-ganetixenu', java.version: '1.8.0_65'
15:57:57     Driver info: driver.version: MyAndroidDriver
15:57:57     	at org.openqa.selenium.remote.RemoteWebDriver.execute(
15:57:57     	at io.appium.java_client.DefaultGenericMobileDriver.execute(
15:57:57     	at io.appium.java_client.AppiumDriver.execute(
15:57:57     	at
15:57:57     	at org.openqa.selenium.remote.RemoteWebDriver.startSession(
15:57:57     	at org.openqa.selenium.remote.RemoteWebDriver.<init>(
15:57:57     	at org.openqa.selenium.remote.RemoteWebDriver.<init>(
15:57:57     	at io.appium.java_client.DefaultGenericMobileDriver.<init>(
15:57:57     	at io.appium.java_client.AppiumDriver.<init>(
15:57:57     	at io.appium.java_client.AppiumDriver.<init>(
15:57:57     	at<init>(

Is there any troubleshoot for installing two android drivers?

I put a 5 seconds sleep in between the two installations,

but it didn’t help