Close call discussion
The I/O exit may receive multiple consecutive close calls, for various reasons internal to File Manager. If the exit receives at least one open call, then the exit will receive at least one close call.
The close function code means the exit is being called immediately prior to a "real" file close.