The easement or other agreement pertaining to the grant of the easement to the town of Needham shall include a provision restricting the use of the property to such purposes and providing that such property shall revert to the commonwealth, under the care and control of the department of conservation and recreation, if the property ceases to be so used or is used for any other purpose.