stop reconnecting after force close

If close() is called when the websocket connection is down it should not try to
reconnect.
Merge pull request #8 from relekang/no-reconnect-after-forceclose

stop reconnecting after close() is called