First step, read the lease. It should have language about early termination of the lease by either party.
Second step, talk to the landlord. See if an arrangement can be worked out.
Third step, he could sue the landlord for a portion of the rent (e.g. 15 of 30 days) and the return of the...