Barack Obama's foreign policy doctrine was summarized as 'don't do stupid shit'