add 'exit context' and 'only stop on match' options to Background app (bug #4511)