Structured connection on a hash to allow connections/disconnections