Merge "hal: close compress record resource when starting fails"