tplogclosethread — Close the current request logging facility
Close the thread logger facility if it is initialised. Function can be called multiple times, if logger is already closed, function will do nothing. In case if logger is closed, logging will be degraded to process based logs, in case if request logging is not in the progress.