Added additional check isClosed to connection validation.  Also added Au...

...toCloseable statement for PreparedStatement.  This would make our language need to be Java 1.7.  I can roll this back if you don't want to do that.