added callback so the rest of the commands on the queue get processed.

(cherry picked from commit 62e39ffb8b08ac7adef43fef4c74cb630ec8f51f)