Fixing bugs
Fix crash when returning to menu from a multiplayer game

Was caused by InternetDiscoveryAction holding a shared_ptr
to ConnectedSocket for too long, thus preventing it from
being destroyed. When it finaly got destroyed, its session
together with io_service was already destroyed.
masio::debug outputs debug info on Android as well