Finishing after onPause to avoid lower system priority