Called when any result file is closed by default.
kind specifies the file type. This method is not called if a result
file specific method like :meth:output_file is implemented.