Added Exception statement

will say that there was an error then go to main() instead of simply
just going to main()