Fix exception on disconnect

rename TransferProtocols to TransferProtocolType for clarity