Raise an exception if a channel is closed while processing frames in a
synchronous transport. Solves #31
Adding regression test for #31