it depends, 1)if your company informing the bank and transferring E S B to the bank,if the amount is sufficient to cover the entire loan or liabilities, you can visit the bank how to get the clearance certificate and release. if the end of service is not sufficient to cover all you may visit the bank and collection department to resolve the issue by waiving some amount or other solution to release,
2) when the company not informing the bank, but you are willing to inform the bank, it is depends on bank and you how they will react,
3)since E S B is transferred to the bank, if the amount is not fully settled, most of the time they will hold
E S B until to settele to outstanding liabilities, will give you a chance to travel out of the country,
** if you are informing the bank at any chance.. try maximum to negotiate to reduce or to waive the charges or discount to repay back.