Adding maps+errormessage on failed connection