If you have open positions on the old contract, you can leave them open. When you decide to close them simply use the close button in the positions list.
Note: When you close a position on the old contract the collateral and profit/loss will be credited to the old contract so it will not show up in the balance of the new contract. Use the steps above to retrieve the unlocked funds from the old contract.