Don't try to close if there are error: resp.Body is going to be null.
If we got an HTTP error, we should return an error.
Added a leader and peers commands