JDBC driver API in Java, Connection.close() raise SQLException by default. But right, don't need to follow JDBC if that way is bad.

But to handle this problem, 
it's better be in separate issue and PR. because changing that lead changing all driver implementations.