bam - added handler for close event in Connection.negociateProtocol