Fixed the massive output when running gt-shapefile tests

- Missing shx is a FileNotFoundException, and should not log the
stacktrace.
- Missing close on some transactions.