记录循环退出的出错原因。
Merge branch 'master' of https://github.com/Yunfeng/schotel
fixed: if entityManager occurs exception, will assign a new EntityManger and retry.