Make sure ~Connection checks the status of ConnectionPool

/to @bnoordhuis 

Try to avoid destruction of Connection if the owning ConnectionPool is terminated.