Clean up the tracing middleware