Remove duplicated search when disconnecting