Update beagle-term/js/launcher.js

close serial port when app destory