fix S3 reconnection logic