Capturing and Prosecuting the Terrorist

In a hostage crisis, is it ethical for a government to agree to grant a terrorist immunity if they release the hostages, even though the government has every intention of capturing and prosecuting the terrorist once his hostages are released?This is not your own personal opinion but must be based on researchNote : it should contain 200-250 word with references in APA format

Connection failed: Access denied for user 'assiriyp_opskill'@'localhost' (using password: YES)