run garbage collection after request completes