Make WebsocketChannel store the close code that was used to initiate the close
More modification to the close behaviour
More close handling fixes