Chelsky, configure the timeouts both on your email program and avast to maximum allowed (or, for instance, 600 seconds).
email: Tools > Accounts > select one > Properties > Advanced > Timeout
avast: Internet Mail provider settings > Customize> Advanced > Timeout
Hope this help 