Transports.Logging: restart task when tryFlush() fails. This commit closes bug #2310.