added Espago::ApiConnection error handling