Add the PID to the tempfile name in the script. Fixes multiple calls arriving the same second.