I have discovered a bug where when i click a button (in the website http://ai2.appinventor.mit.edu) that triggers the companion to do something, it minimizes the app (I am using a Chromebook), and disconnects.
It could be a problem with my Chromebook though.