Just do what Australia does, if they have no right to come into the country then deport them back to the country they have just come from!
Won't you need an agreement with the country to which you are going to send them to actually accept them back?
Or do you suggest just pushing them off a cliff? Will you give them life jackets?