Problem with JDBC Pool

Hello,
My company is considering Percona cluster in order to improve our service.
We’re running some tests with the drive-mode loadbalance with JDBC connection pool.

We have the following problem:
When stopping a node, the node connections in the pool return error.

Is there a way to prevent these connections may return error and maybe connections to migrate to another node in a transparent manner for the clinet.

We use this connection string:
jdbc:mysql:loadbalance://pte-ngdb1.pte.actalis.it,pte-ngdb2.pte.actalis.it,pte-ngdb3.pte.actalis.it/test_cluster?loadBalanceBlacklistTimeout=5000

Thanks in advance.