Fixed logging replacement issues

Fixes #72
Fixed concurrent stream limit handling

Fixes #71