Better handling of error logs on reconnect