Move OnLinkSetFail near LinkSetFail, (to merge them in a separate commit).
Merge OnLinkSetFail into LinkSetFail.
Re-indent LinkSetFail.