log out and search completed