Several changes

* active-once
* stream_id shown in error messages
* cleanup resources on various stream closing cases