void add_close_callback(function f, mixed ... args)
Add a function that is called when the connection is closed.