make call_destroy() global