How I do I close a Change Stream in Realm

I have a couple of change streams open in my Realm application. If the client is idle for ~10 minutes, the connection drops and I get the following error:

I need some way of detecting network errors and restarting the change steam. From the documentation it does not appear that I can manually close a change stream. Does anyone have any ideas or workarounds?