Fix: Doing the refactoring for all connection_destroy. Add more debug of connection.