Add debug logs, trying to fix the session bug as well as the associate keypair one.