Did the company cancel your contract or are you leaving by choice, it is possible to get out of a rental but only if your sponsor has cancelled.
The other thing to remember is that if your landlord finds out too soon he can cash all your cheques despite them being postdated.