Move postdestroy hook to the end of launch event