use try to avoid error
Merge pull request #35 from sachin87/master

use try to avoid error