OptiFi fell victim to a Solana design flaw where closing a program causes it to shut down and lock up the funds held in the contract.