Was your iDevice's screen locked when you went afk? It disconnects your game when that happens. I'm not sure if it's supposed to do that, but it's been happening since the latest Classic update. You can't stop that unless if you degrade to the update before the recent one 0:. I don't know how to do that though 0_0.