fix stop recording on exit
playback process different packet types