fixed segfault with verbose logging and partially established connection