fixed behavior for connection failure