Also catch login() excpetions when trying to get the mobile device ID for issue #19.