fix SCRIPT5022: SecurityError on IE

this error is not caused by cross-domain, but by the limit
on how many open connections the tab might have

thus we close each connection after the test is done