Add self to ws_dict_chan reference. Comment out old_ws.close().