added emit(close) to brico.rmConnection to properly close conn