Close webrequest when checking certificate

This fixed a issue with high response times because of unpredictable
behaviour when the response is not used and not closed. Fixed by Frank
van Moorsel of Primevision, committed on his request by Wim Vandenberghe
of Be-Mobile