Added more exception catching for bug finding.
Added more exception catching for bug finding.

ChenCharlesH/CSE135Project,ChenCharlesH/CSE135Project,ChenCharlesH/CSE135Project,ChenCharlesH/CSE135Project