Sets a close callback on the connection.
The callback is called by the connection when it's closed. The callback is called from the Ice thread pool associated with the connection.