catch dynArdino crash when switching com ports