improve websocket wrapper to dispatch 'close' event only if the socket previously was open and not if the re/connect failed
improve websocket wrapper to dispatch 'close' event only if the socket previously was open and not if the re/connect failed

CodingMinds/CSN,CodingMinds/CSN,CodingMinds/CSN