Fixed incorrect end tags for try/catch