wait until motd does not contain rescue