If you do not have a termination clause in the contract, and the contract was for fixed terms – in this case 4 months – with each renewal being an effective start of the term and conditions of the original contract; then yes, you would be obligated to pay for the entire 4 months or whatever time is necessary to make the 4 month term whole.