mac: Release application delegate on exit