Fix IE9 issues when simultaneously closing from server and client side