Fix 2 bugs :

- davidkirwan/andchat#40 : Crash on startup if connection fails
- davidkirwan/andchat#43 : Crash during session if network is d/c'd