disconnection process: removed unused code