Wait for exit after killing CutyCapt process

Kill is asynchronous, so we still need to wait for exit.