raises exception if background and wait_until_complete flags are not set...

... properly
Please add a reason why this combination is invalid.