improve the disconnection