Minor changes and an important fix

Thank you for MDWamp. Very useful code for us.

The 12/3 fix is more important than the 10/16 and you may want to cherry pick it.

This fixes a problem where disconnect would sometimes trigger a crash in SocketRocket if the close message took too long to return or experienced an error. SR would attempt to send onClose to the self.delegate which was wild. By waiting until -dealloc to tear down socket, the framework can safely assume that the upstream code is no longer expecting any returned messages.