I think it's probably in your loan agreement that in case of termination the bank gets first dibs on your salary and gratuity.