Update _core.py

Was recving the close frame from the websocket
Merge pull request #107 from jamesmilliman/master

Update _core.py