Properly handle connection failure in steampurple