Cooperation with Externalities and Uncertainty