```\n/// @notice Withdraw node balances from the minipool and close it. Only accepts calls from the owner\nfunction close() override external onlyMinipoolOwner(msg.sender) onlyInitialised {\n    // Check current status\n    require(status == MinipoolStatus.Dissolved, "The minipool can only be closed while dissolved");\n    // Distribute funds to owner\n    distributeToOwner();\n    // Destroy minipool\n    RocketMinipoolManagerInterface rocketMinipoolManager = RocketMinipoolManagerInterface(getContractAddress("rocketMinipoolManager"));\n    require(rocketMinipoolManager.getMinipoolExists(address(this)), "Minipool already closed");\n    rocketMinipoolManager.destroyMinipool();\n    // Clear state\n    nodeDepositBalance = 0;\n    nodeRefundBalance = 0;\n    userDepositBalance = 0;\n    userDepositBalanceLegacy = 0;\n    userDepositAssignedTime = 0;\n}\n```\n