Merge "Close the hub after a timeout when dreaming" into main