compound files error logging and cleanup.