cleanup keychain handling