Add exception when record_system failed to write file