Check for `background-processor` exit condition before+after sleep