Catch some exceptions can occured here
Merge pull request #4 from Xephi/master

Catch some exceptions can occured here