If you are employed by an agency then your contract is with them, not the airline.
If the airline goes out of business the agency will lose, you will not. The only problem comes if the airline owes so much money to the agency that it puts the agency out of business.