See my comment on the brettwooldridge/HikariCP#45 issue for a proposed solution.