make sure we die properly in case the nginx config is borked
loop until ready