[#2313] update file size on close for a failed file operation