Fixed file lock issue on sniffer 'stop' command.