Add event handling for stream limit and disconnect warnings