Backtesting Status Never Completed, Empty Backtest Report

 

I have a problem when performing a backtest. After finishing the test, I don't have the results of the Backtest report, the status always stops at around 98-99%. And I don't have any error message in the logging tab. When I profile history, my program doesn't have an infinite loop. 

I noticed that every time it's almost done, EA will call the destructors of the classes and it gets stuck for about 2 seconds and then EA finishes the test, onDeinit got the REASON_REMOVE.

I haven't got a clue about it. If anyone has experience with this situation, please give me some suggestions, thanks in advance.