added an exception gui, and added user-friendly handling of failure to connect to an instrument