USS John S. McCain leaves Singapore