Segfault on invoke AbstractConnection::isConnected inside destructor