The captain ordered that the guards unshackle and release the prisoner, as he had served his sentence.