adding the connection failure listener