to pay rent or any other breach of a lease or tenancy at will agreement, the landlord may recover rent and damages except amounts which the landlord could mitigate in accordance with this section, unless the landlord has expressly agreed to accept a surrender of the premises and end the tenant's liability.