Update ComDevicePlugin.cs

Compiles, but crashes when run. please help.