handle gracefully unreachable provider during login
Several issues here:
- Timeout too long (should be 10 secs).
- No feedback to user.
- Login thread hangs app termination * should cancel defer *
To test, add a non valid entry in /etc/hosts.
(from redmine: created on 2013-06-14, closed on 2013-07-05)