Cleaned up LeakCheckedConnection.java - possibly unsafe but I think its fine.
Parameterized a thing, removed some unused code, and got rid of one of our annoying compiler warnings