Fix Bug 2

Added try catch loop in main.
Merge pull request #20 from WeirdCoder/master

Bug 2 Fixed