added ready flag to connection, backfilled virtual destructors on base classes