Set up another boolean (stopping) to ensure that running is not set as false until the remote checkpoint is saved to ensure there are no stale values as per issue 108 on couchbase-lite-android.