Add a callback for when the streaming connection is closed.