Added stream end tests
Properly debind the channel once the stream has ended
Bump version to 0.4.0