Ensure _changes terminates before inactivity_timeout

This will allow the replicator to reconnect cleanly instead of
considering the request a failure.