Improved error handling in logout completion handler and made the SPiD client not crash the calling app if the logout fails to remote the security token from the keychain.