You have no guarantees that the initial tshark instance has actually finished by that point. Rather than guessing at times and using sleep, use wait
instead to force the script to wait for tshark to finish.
Waiting for background processes to finish before exiting script