Fixes and improvements for SecureTcpChannel

Setting the socket property on `Assign` is required for shutting down the socket correctly and accessing the  `IsConnected` property.