slight cleanup
fix bug in documents from query subscriptions not being properly unloaded