Call close() in ManagedJdbcConnection instead.