Monkey patch sockJS to close cleanly