try to connect again if failed