i also face the same issue in appium 1.6.0, when i start a session to inspect elements, after some time session get closed due to inactivity.
if it’s same issue then you can downgrade to 1.5.0 appium desktop version, which doesn’t have the above issue.