Changed hub not accepting leaves threshold to 2 leaves.
Call close instead of sending a connect error because connect errors are only useful during handshake.