Fix up backgrounding and notifications