Update websocket.py

Changed s.closing object existence testing (s.closing is iterable object)