Move Cocoa release pool to main

.. because mainwindows come and go and we need to persist
   across them all.