added exception handling for closed websockets
updated setup.py