Doctor leaves prison job over state executions