Fixed the readyState on CLOSED already, should not throw an exception since it is completely possible that the readystate is on CLOSED already. readystate is CLOSED if a loadbalancer (nginx) closed the connection due to no heartbeats being sent.