Don't throw an error when close is called multiple times. Fixes #211
[major] Remove 0.4 and 0.6 support, fixes #223

In addition to that, i've fixed a couple of JSHint issues, there are still a lot
more broken semicolons and broken switch/case statements. In addition to that i've
removed all tabs and replaced with the correct placeholders.
sync to ws upstream 2013.12.03