 		startConnection();
 		GET();
 		bool done = false;
+		unsigned long httpTime = millis();
 		while (!done) {
 			while (WIFI.available()) {
 				Serial.write(WIFI.read());
 			}
-			if(digitalRead(speakerPin) == HIGH) {
+			if ((millis() - httpTime) > 3*pollInterval) {
 				done = true;
 			}
 		}
+		closeConnection();
 		Serial.println();
 		RFID.listen();
 	}

		else {
			Serial.print(messages.cardUpdated);
			delay(timeToRemoveCard);
			wifiReady = true;
		}
	}
	else {

			Serial.print(messages.displayUsedTime);
			Serial.println(existingTime);
			Serial.print(messages.authorized);
			// get ready to record time
			elapsedTime = accumulator();
			Serial.print(messages.displayNewTime);
			Serial.println(elapsedTime + existingTime);
