Close streaming session when cancelled

I think we should attempt to actively close the session when streaming
is cancelled instead of just letting the session time out.

I need to clean resources after cancelling a stream.  If the stream
keeps using these resources it causes errors.
Merge pull request #207 from youngm/patch-2

Close streaming session when cancelled