Use QueStop to close the internal queue thread created by QueStart function.
While QueStop function execution OnThreadEnd event will be called
in this thread context, and then it will be closed.
This function call is synchronized with this thread closing, so QueStop function may be completed
successfully only after correct completion of the
OnPacketReceive event handler.