We had two different closing procedures - exactly the same other then one used the integer values, the other the constants.
I did check though, the constants are defined to these values.

IIRC in the past it didn't do SHUT_RDWR, just SHUT_RD/WR (which was a bug)