close serial connection when window close
Merge pull request #29 from beagleterm/fix_close_serial

close serial connection when window close