How to disconnect from device after test execution

Hello Guys,

I'm trying to execute a mobile test automation (Android) using RobotFramework and it works just fine, the test execute and pass. The problem is, I just can't disconnect from the device when my test finishes. 

The problem is that the next test will fail with a "No available device" error message

This is how I'm stating my test:

    Open Application                    http://<server>>:8080/wd/hub
... platformName=Android
... appPackage=<package>
... appActivity=<activity>
... automatationName=Uiautomatior2
... autoGrantPermissions=true
... newCommandTimeout=10000
... oauthClientId=<id>
... oauthClientSecret=<secret>
... tenantId=<tenant>
... mcWorkspaceName=Default workspace
... session-override=true
... relaxed-security=true
... pre-launch=true
... noReset=false

Also, I tried to close the application at the end of the test but the connection still alive


How can I send a command to close that connection so I can start a new test