server: Set appropriate status for a terminated thread.