close also if socket.readyState is on "opening"
Merge pull request #95 from pokermania/to_learnboost_20130130

close also if socket.readyState is on "opening"