Close function added to connection, if check for closing in hub and comments and documentation for new connection extension feature.