Removed cleanup of connections in disconnect(), moved it to connect(), in anticipation of automatic connection management.