OPAL-2573 Allow waiting for command to end when querying for result