Added try/catch to handle errors
Remove unnecessary try/catch