A modern limited duration tenancy may be terminated by agreement between the landlord and tenant if the agreement is in writing and—
(a)
is entered into after the commencement of the tenancy, and
(b)
makes provision as to compensation payable by the landlord or the tenant to the other.