Fixed buttons being deactivated after write.
Tried to fix SerialPort giving up native resources.