Retry login rather than crashing the process.
Merge pull request #14 from edx/dcs/better-login

Retry login rather than crashing the process.