[Serial] Fixed several issues that made the application crash.

Fixed an issue where the serial port listener could not stop during
the reception of data.
Enhanced the SerialFrameDescriptor class constructor.