Implemented error handling for open/close serial connection. Added a label to inform about the current connection status. Additional minor code changes.