Refactor handle_update_fulfill_htlc to wrapper error handling function