moved connection failed warning message around