US reputation in question after near crisis