onBackground

Called by the UI on lifecycle pause. Cancels the poll loop. The current state is preserved so the UI keeps rendering what it had.