If it is not then u have to pay some penalty. but if your landlord is a nice person he/she might be let you go. You give him a 2 month notice and try to find a substitute for him