Add connect failed callback.