Thomas Clarke and the surrender, trials and execution