0 Indicates that the catalog was successfully
closed.
-1 Indicates that an error occurred. The function
sets errno to the following value:
o EBADF - The catalog descriptor is not
valid.