[BUGFIX] Always log exception data if file handling fails