pyterm: handle serial disconnect
pyterm: handle serial disconnect

* will reconnect automatically if possible after a disconnect
* resolves #910

sumanpanchal/RIOT,changbiao/RIOT,plushvoxel/RIOT,biboc/RIOT,Lexandro92/RIOT-CoAP,locicontrols/RIOT,stevenj/RIOT,khhhh/RIOT,josephnoir/RIOT,kYc0o/RIOT,plushvoxel/RIOT,LudwigOrtmann/RIOT,katezilla/RIOT,rfswarm/RIOT,neiljay/RIOT,RIOT-OS/RIOT,syin2/RIOT,wentaoshang/RIOT,haoyangyu/RIOT,gautric/RIOT,LudwigOrtmann/RIOT,biboc/RIOT,koenning/RIOT,bartfaizoltan/RIOT,alignan/RIOT,plushvoxel/RIOT,plushvoxel/RIOT,ximus/RIOT,rfuentess/RIOT,kaspar030/RIOT,msolters/RIOT,jasonatran/RIOT,lazytech-org/RIOT,mtausig/RIOT,chris-wood/RIOT,rousselk/RIOT,Lotterleben/RIOT,robixnai/RIOT,gbarnett/RIOT,l3nko/RIOT,rajma996/RIOT,alignan/RIOT,syin2/RIOT,gbarnett/RIOT,abp719/RIOT,ntrtrung/RIOT,luciotorre/RIOT,alignan/RIOT,ks156/RIOT,rajma996/RIOT,backenklee/RIOT,mtausig/RIOT,d00616/RIOT,rfswarm2/RIOT,alignan/RIOT,x3ro/RIOT,toonst/RIOT,lebrush/RIOT,immesys/RiSyn,zhuoshuguo/RIOT,locicontrols/RIOT,ntrtrung/RIOT,tdautc19841202/RIOT,avmelnikoff/RIOT,1blankz7/RIOT,thomaseichinger/RIOT,jferreir/RIOT,rfuentess/RIOT,ks156/RIOT,Josar/RIOT,ks156/RIOT,LudwigKnuepfer/RIOT,LudwigKnuepfer/RIOT,MarkXYang/RIOT,jbeyerstedt/RIOT-OTA-update,tdautc19841202/RIOT,sumanpanchal/RIOT,rfswarm/RIOT,abkam07/RIOT,rakendrathapa/RIOT,koenning/RIOT,yogo1212/RIOT,adrianghc/RIOT,tdautc19841202/RIOT,backenklee/RIOT,zhuoshuguo/RIOT,Darredevil/RIOT,adjih/RIOT,EmuxEvans/RIOT,FrancescoErmini/RIOT,AnonMall/RIOT,dhruvvyas90/RIOT,abkam07/RIOT,centurysys/RIOT,tfar/RIOT,Ell-i/RIOT,brettswann/RIOT,rfswarm/RIOT,jasonatran/RIOT,Josar/RIOT,miri64/RIOT,arvindpdmn/RIOT,kb2ma/RIOT,chris-wood/RIOT,jremmert-phytec-iot/RIOT,dailab/RIOT,MarkXYang/RIOT,phiros/RIOT,jhollister/RIOT,roberthartung/RIOT,tfar/RIOT,emmanuelsearch/RIOT,ntrtrung/RIOT,Lexandro92/RIOT-CoAP,cladmi/RIOT,stevenj/RIOT,herrfz/RIOT-old,dkm/RIOT,MarkXYang/RIOT,ThanhVic/RIOT,immesys/RiSyn,OlegHahm/RIOT,sgso/RIOT,BytesGalore/PetersRIOT,Lotterleben/RIOT,emmanuelsearch/RIOT,A-Paul/RIOT,jfischer-phytec-iot/RIOT,katezilla/RIOT,haoyangyu/RIOT,EmuxEvans/RIOT,tdautc19841202/RIOT,kaleb-himes/RIOT,kbumsik/RIOT,openkosmosorg/RIOT,sumanpanchal/RIOT,OlegHahm/RIOT,haoyangyu/RIOT,shady33/RIOT,daniel-k/RIOT,wentaoshang/RIOT,kerneltask/RIOT,josephnoir/RIOT,1blankz7/RIOT,asanka-code/RIOT,syin2/RIOT,rousselk/RIOT,RBartz/RIOT,jferreir/RIOT,JensErdmann/RIOT,openkosmosorg/RIOT,ThanhVic/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,changbiao/RIOT,kaleb-himes/RIOT,marcosalm/RIOT,changbiao/RIOT,jasonatran/RIOT,gbarnett/RIOT,neumodisch/RIOT,DipSwitch/RIOT,gebart/RIOT,toonst/RIOT,yogo1212/RIOT,JensErdmann/RIOT,lebrush/RIOT,josephnoir/RIOT,patkan/RIOT,benoit-canet/RIOT,MohmadAyman/RIOT,binarylemon/RIOT,d00616/RIOT,nsol-nmsu/RIOT,x3ro/RIOT,brettswann/RIOT,kerneltask/RIOT,neiljay/RIOT,Lexandro92/RIOT-CoAP,lebrush/RIOT,tfar/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,thiagohd/RIOT,koenning/RIOT,kYc0o/RIOT,watr-li/RIOT,yogo1212/RIOT,Hyungsin/RIOT-OS,shady33/RIOT,kaspar030/RIOT,OTAkeys/RIOT,jremmert-phytec-iot/RIOT,d00616/RIOT,FrancescoErmini/RIOT,alex1818/RIOT,RBartz/RIOT,openkosmosorg/RIOT,jremmert-phytec-iot/RIOT,toonst/RIOT,msolters/RIOT,basilfx/RIOT,rakendrathapa/RIOT,LudwigOrtmann/RIOT,1blankz7/RIOT,emmanuelsearch/RIOT,rakendrathapa/RIOT,phiros/RIOT,nsol-nmsu/RIOT,PSHIVANI/Riot-Code,jbeyerstedt/RIOT-OTA-update,malosek/RIOT,ThanhVic/RIOT,malosek/RIOT,rfuentess/RIOT,miri64/RIOT,roberthartung/RIOT,aeneby/RIOT,watr-li/RIOT,fnack/RIOT,wentaoshang/RIOT,FrancescoErmini/RIOT,jfischer-phytec-iot/RIOT,attdona/RIOT,hamilton-mote/RIOT-OS,Hyungsin/RIOT-OS,marcosalm/RIOT,locicontrols/RIOT,sumanpanchal/RIOT,shady33/RIOT,herrfz/RIOT-old,Ell-i/RIOT,neumodisch/RIOT,Yonezawa-T2/RIOT,AnonMall/RIOT,backenklee/RIOT,thomaseichinger/RIOT,BytesGalore/RIOT,rfswarm2/RIOT,dhruvvyas90/RIOT,gbarnett/RIOT,ant9000/RIOT,MonsterCode8000/RIOT,attdona/RIOT,MonsterCode8000/RIOT,JensErdmann/RIOT,mziegert/RIOT,brettswann/RIOT,kerneltask/RIOT,x3ro/RIOT,centurysys/RIOT,d00616/RIOT,smlng/RIOT,zhuoshuguo/RIOT,alex1818/RIOT,avmelnikoff/RIOT,altairpearl/RIOT,Lexandro92/RIOT-CoAP,robixnai/RIOT,benoit-canet/RIOT,khhhh/RIOT,DipSwitch/RIOT,d00616/RIOT,haoyangyu/RIOT,jhollister/RIOT,kbumsik/RIOT,jasonatran/RIOT,rfswarm/RIOT,DipSwitch/RIOT,authmillenon/RIOT,dhruvvyas90/RIOT,Osblouf/RIOT,ntrtrung/RIOT,BytesGalore/RIOT,RBartz/RIOT,1blankz7/RIOT,rousselk/RIOT,kbumsik/RIOT,FrancescoErmini/RIOT,mfrey/RIOT,BytesGalore/RIOT,fnack/RIOT,koenning/RIOT,Lexandro92/RIOT-CoAP,dkm/RIOT,TobiasFredersdorf/RIOT,RBartz/RIOT,EmuxEvans/RIOT,gebart/RIOT,MohmadAyman/RIOT,OTAkeys/RIOT,marcosalm/RIOT,Darredevil/RIOT,alex1818/RIOT,rakendrathapa/RIOT,kb2ma/RIOT,rfswarm/RIOT,brettswann/RIOT,neiljay/RIOT,immesys/RiSyn,brettswann/RIOT,watr-li/RIOT,l3nko/RIOT,arvindpdmn/RIOT,PSHIVANI/Riot-Code,adrianghc/RIOT,fnack/RIOT,MarkXYang/RIOT,kYc0o/RIOT,mziegert/RIOT,josephnoir/RIOT,sgso/RIOT,Osblouf/RIOT,smlng/RIOT,lebrush/RIOT,Darredevil/RIOT,abkam07/RIOT,dailab/RIOT,jferreir/RIOT,l3nko/RIOT,herrfz/RIOT,abkam07/RIOT,robixnai/RIOT,thiagohd/RIOT,zhuoshuguo/RIOT,chris-wood/RIOT,khhhh/RIOT,benoit-canet/RIOT,1blankz7/RIOT,sgso/RIOT,hamilton-mote/RIOT-OS,beurdouche/RIOT,yogo1212/RIOT,asanka-code/RIOT,basilfx/RIOT,ros2/ros2_embedded_riot,toonst/RIOT,kaspar030/RIOT,wentaoshang/RIOT,Lotterleben/RIOT,Yonezawa-T2/RIOT,openkosmosorg/RIOT,biboc/RIOT,cladmi/RIOT,yogo1212/RIOT,OTAkeys/RIOT,daniel-k/RIOT,jferreir/RIOT,locicontrols/RIOT,RIOT-OS/RIOT,authmillenon/RIOT,msolters/RIOT,fnack/RIOT,RubikonAlpha/RIOT,kbumsik/RIOT,malosek/RIOT,aeneby/RIOT,mziegert/RIOT,RubikonAlpha/RIOT,alignan/RIOT,shady33/RIOT,thiagohd/RIOT,jferreir/RIOT,aeneby/RIOT,binarylemon/RIOT,mziegert/RIOT,miri64/RIOT,nsol-nmsu/RIOT,arvindpdmn/RIOT,Osblouf/RIOT,A-Paul/RIOT,LudwigOrtmann/RIOT,bartfaizoltan/RIOT,rajma996/RIOT,dhruvvyas90/RIOT,lazytech-org/RIOT,automote/RIOT,attdona/RIOT,mtausig/RIOT,thomaseichinger/RIOT,x3ro/RIOT,luciotorre/RIOT,LudwigKnuepfer/RIOT,centurysys/RIOT,rousselk/RIOT,miri64/RIOT,MarkXYang/RIOT,bartfaizoltan/RIOT,ros2/ros2_embedded_riot,kerneltask/RIOT,mtausig/RIOT,BytesGalore/PetersRIOT,TobiasFredersdorf/RIOT,automote/RIOT,d00616/RIOT,bartfaizoltan/RIOT,ximus/RIOT,centurysys/RIOT,wentaoshang/RIOT,herrfz/RIOT,rfuentess/RIOT,authmillenon/RIOT,ntrtrung/RIOT,A-Paul/RIOT,patkan/RIOT,ximus/RIOT,stevenj/RIOT,centurysys/RIOT,authmillenon/RIOT,beurdouche/RIOT,ros2/ros2_embedded_riot,sumanpanchal/RIOT,mfrey/RIOT,msolters/RIOT,latsku/RIOT,jbeyerstedt/RIOT-OTA-update,ThanhVic/RIOT,smlng/RIOT,nsol-nmsu/RIOT,robixnai/RIOT,rakendrathapa/RIOT,roberthartung/RIOT,rfswarm/RIOT,bartfaizoltan/RIOT,rfswarm2/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,kushalsingh007/RIOT,MonsterCode8000/RIOT,lazytech-org/RIOT,ant9000/RIOT,aeneby/RIOT,ximus/RIOT,Josar/RIOT,RIOT-OS/RIOT,binarylemon/RIOT,stevenj/RIOT,emmanuelsearch/RIOT,jfischer-phytec-iot/RIOT,kaspar030/RIOT,haoyangyu/RIOT,AnonMall/RIOT,alex1818/RIOT,lazytech-org/RIOT,automote/RIOT,ThanhVic/RIOT,altairpearl/RIOT,RIOT-OS/RIOT,kushalsingh007/RIOT,basilfx/RIOT,lebrush/RIOT,stevenj/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,syin2/RIOT,Darredevil/RIOT,JensErdmann/RIOT,Darredevil/RIOT,l3nko/RIOT,jhollister/RIOT,jbeyerstedt/RIOT-OTA-update,beurdouche/RIOT,biboc/RIOT,arvindpdmn/RIOT,herrfz/RIOT,watr-li/RIOT,nsol-nmsu/RIOT,Darredevil/RIOT,basilfx/RIOT,emmanuelsearch/RIOT,roberthartung/RIOT,rajma996/RIOT,beurdouche/RIOT,MonsterCode8000/RIOT,kb2ma/RIOT,roberthartung/RIOT,changbiao/RIOT,tdautc19841202/RIOT,thiagohd/RIOT,A-Paul/RIOT,mfrey/RIOT,shady33/RIOT,herrfz/RIOT-old,tfar/RIOT,Lotterleben/RIOT,MohmadAyman/RIOT,abkam07/RIOT,locicontrols/RIOT,DipSwitch/RIOT,JensErdmann/RIOT,thomaseichinger/RIOT,attdona/RIOT,sgso/RIOT,RubikonAlpha/RIOT,jremmert-phytec-iot/RIOT,herrfz/RIOT,EmuxEvans/RIOT,kb2ma/RIOT,khhhh/RIOT,kushalsingh007/RIOT,ThanhVic/RIOT,basilfx/RIOT,watr-li/RIOT,Ell-i/RIOT,AnonMall/RIOT,altairpearl/RIOT,sgso/RIOT,rfswarm2/RIOT,jhollister/RIOT,koenning/RIOT,OlegHahm/RIOT,DipSwitch/RIOT,adrianghc/RIOT,toonst/RIOT,Lotterleben/RIOT,zhuoshuguo/RIOT,PSHIVANI/Riot-Code,altairpearl/RIOT,l3nko/RIOT,neiljay/RIOT,Osblouf/RIOT,latsku/RIOT,jremmert-phytec-iot/RIOT,kaleb-himes/RIOT,neiljay/RIOT,phiros/RIOT,latsku/RIOT,emmanuelsearch/RIOT,rousselk/RIOT,Yonezawa-T2/RIOT,benoit-canet/RIOT,kushalsingh007/RIOT,phiros/RIOT,Ell-i/RIOT,BytesGalore/PetersRIOT,arvindpdmn/RIOT,adrianghc/RIOT,chris-wood/RIOT,latsku/RIOT,binarylemon/RIOT,daniel-k/RIOT,latsku/RIOT,jremmert-phytec-iot/RIOT,OTAkeys/RIOT,MohmadAyman/RIOT,OTAkeys/RIOT,kaspar030/RIOT,jfischer-phytec-iot/RIOT,changbiao/RIOT,DipSwitch/RIOT,mtausig/RIOT,jbeyerstedt/RIOT-OTA-update,bartfaizoltan/RIOT,adrianghc/RIOT,aeneby/RIOT,shady33/RIOT,automote/RIOT,AnonMall/RIOT,benoit-canet/RIOT,l3nko/RIOT,malosek/RIOT,cladmi/RIOT,centurysys/RIOT,Lexandro92/RIOT-CoAP,fnack/RIOT,A-Paul/RIOT,avmelnikoff/RIOT,chris-wood/RIOT,asanka-code/RIOT,x3ro/RIOT,phiros/RIOT,cladmi/RIOT,openkosmosorg/RIOT,marcosalm/RIOT,BytesGalore/RIOT,BytesGalore/PetersRIOT,mfrey/RIOT,stevenj/RIOT,TobiasFredersdorf/RIOT,TobiasFredersdorf/RIOT,dkm/RIOT,brettswann/RIOT,avmelnikoff/RIOT,Josar/RIOT,herrfz/RIOT,kushalsingh007/RIOT,gautric/RIOT,gbarnett/RIOT,Ell-i/RIOT,FrancescoErmini/RIOT,ntrtrung/RIOT,authmillenon/RIOT,marcosalm/RIOT,syin2/RIOT,abp719/RIOT,hamilton-mote/RIOT-OS,Hyungsin/RIOT-OS,gebart/RIOT,OlegHahm/RIOT,chris-wood/RIOT,rfuentess/RIOT,katezilla/RIOT,patkan/RIOT,dailab/RIOT,daniel-k/RIOT,backenklee/RIOT,katezilla/RIOT,MohmadAyman/RIOT,abp719/RIOT,ros2/ros2_embedded_riot,miri64/RIOT,haoyangyu/RIOT,abp719/RIOT,patkan/RIOT,lebrush/RIOT,dailab/RIOT,altairpearl/RIOT,fnack/RIOT,ros2/ros2_embedded_riot,kbumsik/RIOT,smlng/RIOT,LudwigOrtmann/RIOT,robixnai/RIOT,locicontrols/RIOT,hamilton-mote/RIOT-OS,neumodisch/RIOT,Yonezawa-T2/RIOT,ros2/ros2_embedded_riot,neumodisch/RIOT,rajma996/RIOT,dailab/RIOT,altairpearl/RIOT,neumodisch/RIOT,jasonatran/RIOT,cladmi/RIOT,ros2/ros2_embedded_riot,1blankz7/RIOT,attdona/RIOT,luciotorre/RIOT,ks156/RIOT,automote/RIOT,authmillenon/RIOT,kushalsingh007/RIOT,Josar/RIOT,herrfz/RIOT-old,adjih/RIOT,Osblouf/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,EmuxEvans/RIOT,mfrey/RIOT,thiagohd/RIOT,asanka-code/RIOT,mziegert/RIOT,gebart/RIOT,changbiao/RIOT,josephnoir/RIOT,msolters/RIOT,gautric/RIOT,hamilton-mote/RIOT-OS,daniel-k/RIOT,mziegert/RIOT,gebart/RIOT,herrfz/RIOT-old,alex1818/RIOT,FrancescoErmini/RIOT,Yonezawa-T2/RIOT,biboc/RIOT,kerneltask/RIOT,RubikonAlpha/RIOT,rajma996/RIOT,malosek/RIOT,patkan/RIOT,yogo1212/RIOT,abp719/RIOT,luciotorre/RIOT,LudwigKnuepfer/RIOT,asanka-code/RIOT,luciotorre/RIOT,immesys/RiSyn,dkm/RIOT,attdona/RIOT,kYc0o/RIOT,plushvoxel/RIOT,sumanpanchal/RIOT,katezilla/RIOT,openkosmosorg/RIOT,khhhh/RIOT,wentaoshang/RIOT,EmuxEvans/RIOT,jferreir/RIOT,automote/RIOT,adjih/RIOT,BytesGalore/PetersRIOT,gautric/RIOT,tfar/RIOT,dkm/RIOT,latsku/RIOT,rousselk/RIOT,binarylemon/RIOT,rfswarm2/RIOT,kaleb-himes/RIOT,BytesGalore/PetersRIOT,ant9000/RIOT,backenklee/RIOT,adjih/RIOT,dhruvvyas90/RIOT,MonsterCode8000/RIOT,ant9000/RIOT,watr-li/RIOT,LudwigKnuepfer/RIOT,RubikonAlpha/RIOT,jfischer-phytec-iot/RIOT,adjih/RIOT,gbarnett/RIOT,jhollister/RIOT,PSHIVANI/Riot-Code,RBartz/RIOT,gautric/RIOT,RubikonAlpha/RIOT,binarylemon/RIOT,PSHIVANI/Riot-Code,kb2ma/RIOT,khhhh/RIOT,smlng/RIOT,avmelnikoff/RIOT,sgso/RIOT,zhuoshuguo/RIOT,tdautc19841202/RIOT,msolters/RIOT,robixnai/RIOT,kYc0o/RIOT,thiagohd/RIOT,benoit-canet/RIOT,kaleb-himes/RIOT,asanka-code/RIOT,RIOT-OS/RIOT,BytesGalore/RIOT,MarkXYang/RIOT,patkan/RIOT,abp719/RIOT,JensErdmann/RIOT,AnonMall/RIOT,ant9000/RIOT,alex1818/RIOT,luciotorre/RIOT,TobiasFredersdorf/RIOT,herrfz/RIOT,MohmadAyman/RIOT,koenning/RIOT,Osblouf/RIOT,ximus/RIOT,BytesGalore/PetersRIOT,dhruvvyas90/RIOT,Lotterleben/RIOT,marcosalm/RIOT,OlegHahm/RIOT,jhollister/RIOT,daniel-k/RIOT,malosek/RIOT,thomaseichinger/RIOT,ximus/RIOT,beurdouche/RIOT,Hyungsin/RIOT-OS,neumodisch/RIOT,rakendrathapa/RIOT,phiros/RIOT,LudwigOrtmann/RIOT,MonsterCode8000/RIOT,rfswarm2/RIOT,arvindpdmn/RIOT,PSHIVANI/Riot-Code,RBartz/RIOT,immesys/RiSyn,abkam07/RIOT,ks156/RIOT,locicontrols/RIOT,Lotterleben/RIOT,lazytech-org/RIOT,Yonezawa-T2/RIOT,immesys/RiSyn,Hyungsin/RIOT-OS