Fix warnings, Java 7, try/catch
Fixes #114
#55