It prints when the
Commands out of sync
passes through it, and not before. So this error is happening before the with
block exits.