Fixed formatting issues and added System.exit calls to unresolvable "catch" statements