Goyf is exiled as part of the spell's resolution, before Wail hits the graveyard. Similar to Abrupt Decay on a Rest in Peace, where the spell effect occurs first (destroy), so RIP is exiled but then...