cancel pouchdb subscription if scope is destroyed