Fixing fatal error when there is connection error with the cluster