* Properly close notification substreams * Some debug asserts * Fix state inconsistency * Remove erroneous debug_assert! * Some comments