added shutdown for data channels. needs some more work, but at least the tests can run and finish now.