Rework stream closing to better comply with draft-moffitt-xmpp-over-websocket-03
Final stream close improvements (hopefully)