Merge pull request #22272 from eliperelman/bug-1045076-perf-timestamp-failsafe

Bug 1045076 - Add sanity check to timestamp handlers and return values r=hub
Merge pull request #22273 from eliperelman/bug-1045717-close-app-on-memory-test-failure

Bug 1045717 - Close app before asserting values from memory usage r=hub