Application is now fairly robust against losing a device during an R-style experiment (desktop only logging).  An onReceiveError() function is invoked when a connection is lost.  This function marks a device as disconnected.  Buttons on the user interface have appropriate messages for when a connection is lost, whether or not an experiment is configured.