diff --git a/telemetry/telemetry/internal/backends/chrome/android_browser_backend.py b/telemetry/telemetry/internal/backends/chrome/android_browser_backend.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/internal/backends/chrome/android_browser_backend.py
+++ b/telemetry/telemetry/internal/backends/chrome/android_browser_backend.py
@@ -203,9 +203,9 @@ class AndroidBrowserBackend(chrome_browser_backend.ChromeBrowserBackend):
 
   @exc_util.BestEffort
   def Close(self):
-    super(AndroidBrowserBackend, self).Close()
     if os.getenv('CHROME_PGO_PROFILING'):
       self.devtools_client.DumpProfilingDataOfAllProcesses(timeout=120)
+    super(AndroidBrowserBackend, self).Close()
     self._StopBrowser()
     if self._tmp_minidump_dir:
       shutil.rmtree(self._tmp_minidump_dir, ignore_errors=True)
[PGO] Dump all profiles prior to Close()

Devtool client is closed prior to pgo profile dumping, causing a null
reference to the client. This swaps the order such that the client
remains active while dumping, before we close it off.

Bug: chromium:<I>
Change-Id: I7ee7ec3e6a<I>f<I>b<I>d<I>dd7c<I>eb<I>dc6
Reviewed-on: <URL>