reconnect if connection fails