Added some exception trapping.
Added some exception trapping.

nagyistoce/devide,fvpolpeta/devide,chrisidefix/devide,zhangfangyan/devide,chrisidefix/devide,ivoflipse/devide,ivoflipse/devide,fvpolpeta/devide,zhangfangyan/devide,nagyistoce/devide