Fix stream state transitions and remove from map when states goes to CLOSED.
2 files changed