Prisoner collapsed after hearing sentence