Protecting ISIL hostages was Turkey's priority: President