Fix Bug 2

Added try catch loop in main.