add connection failed listener