reconnect if connection ends