No need to use the terminal. Bus them out, under police escort if need be, to a secure area outside the airport, and then process them as required. Keeping them 6 hours or longer sitting on the ramp is just scandalous and demonstrates how inept the authorities really are.