Hi
Your logs show a connection problem between your computer and
BetFair API. This could be at your end and you will get a similar error logged if the
BetFair API is down. If you are going to be running triggers properly you really want to sort your side for reliability. If your ISP can't provide a stable connection perhaps you should consider a VPS service.
On your second question, if the program is restarted, it will certainly detect real mode matched or unmatched bets. You could design triggers to test if any are out of sync with your betting trigger by using similar conditions such as:
OR
trigger <name of betting trigger> number of runs is equal to 0 overall
AND
selections back matched is equal to 0
and selections back unmatched is equal to 0
OR
trigger <name of betting trigger> number of runs is greater than 0 overall
AND
selections back matched is greater than 0
or selections back unmatched is greater than 0
The first OR block checks for no matched or unmatched bets and makes the first bet for the current session.
The second OR block detects any matched or unmatched bets but only bets if the trigger has executed at least once this session.