Fix error propagation test for old IE
Fix possible security error on IE by closing all sockets
Merge pull request #704 from rase-/fix/tests-on-ie

Fix IE tests