Finally fixing the background task hangs that we've been seeing for a while.