added logic to handle excess packet(s) when stop (0 0 0) is called.
minor update