Don't capture pointers/references to objects that may be deleted in the closures that are used to queue commands in client thread