Handle case where consent tab is closed before data processing finishes