After a call to messages::close, cat should not be accessed anymore with messages::get.
During its operation, the version of this function in the generic template simply calls the virtual protected member do_close, which is the member function in charge of performing the actions described above.
Parameters
cat
Catalog identifier. The value shall have been obtained by a call to messages::open. catalog is a member type, alias of int.