Send trace span & fix memory leak while cleaning up