Use iter() instead of while True
Close the view in case the connection is damaged
Add a rsub presence indicator in the status bar
More solid behavior in case the socket connection fails