Brazil backs away from the virus brink as deaths top 400,000