Not perfect fix for race condition on remotely closed pooled connection, close #415