Fixed TraceLog bug on shutting down