Fixed crash when waiting for an exec queue.