Stop errors on visual eval when not connected, fix #52

Check to see whether the connection is alive before firing any events.