Add a close callback for socket Rocks (XCC)