Replaces throwing exception in the case of DuplexStream double close with return.
Fixes Added headers base64 handling commit.