Fix read access violation when closing the ui while capturing
Fix read access violation when closing the ui while capturing

`GTimerManager` was set to `nullptr` on close before stopping receiving
messages.
Bug: http://b/157722384

google/orbit,google/orbit,google/orbit,google/orbit