Python Code on MT5 VPS Terminates

 
I have a python script, which I rented a MT5 VPS and run it on its Python Editor. The code does backtesting, based on this it calculated how long should live trading run. But live trading tends to terminates around the 2-3 hour mark. I have print statements on the code for show if termination is due to my logic, but these print statements are printed on termination, meaning something else causes the termination other than my logic. Is ther a specific time Python code can run on MT5's VPS?