Want to resign and want to go back india

I am working in a company in Bahrain for the last 11 mnths.Since I have some family problems i want to resign n go back to india after completing one year.I have signed a 2 year contract.I want to know formalities  n is there any legal issues for this.Somebody plse help me..

Please refer to this resign from existing job