Puts error and send mail when can not assign ip to machine