implemented a callback for when the stream gets rate limited