WIP - Closing a session should unpipe all the channels

This is required to be able to safely handle disconnections.

atm I have just isolated it in a test-case, still working on the fix.