Minor exceptions catched.
Merge pull request #7 from rohitchormale/master

Minor exceptions catched.