Fix on_close_callback function name