handle am2dm connection error