Thanks Kimklas. I would add the auto-logging code instead of manually copy and paste the log from the "run" window, so to have less interfere to the system. And yes the IB auto-logoff is not a disturbing factor since the code has been taking care of it. I think I should move on to let the machine running for a week and just observe how it's going.