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

... properly