Key will be free'd in HandleConnection.
Merge pull request #1573 from jimis/agent_protocol_version

Key will be free'd in HandleConnection.