Do our work before calling other fmgr hooks

If other hooks raise an exception (such as in recent testing I did
with call_graph), we might end up trying to pfree memory which is
already gone.  This still doesn't solve the problem where other
fmgr_hooks misbehave, but at least my kids are playing nice.