Emit error event for close event codes above 1000.

Pertains to issues #75 and #32. Without this change, SockJS reconnection was failing because the "error" event was not emitted for "close" events that were not clean such as "All Transports Failed" (code 2000). This changes the check for codes above 1000 which should all be errors.