Catch exceptions in processCommandQueue: