The plan to rescue the cash-strapped National Oil Corporation has been finalised following the signing of a deal with Rubis Energy Kenya, which will inject cash into the corporation.