Ensure stopForeground() is called.