Help for this page
use Mutex; ... ...
my $state_mutex = Mutex->new( path => "/tmp/state.lock" ); ... # then unlink or empty the state file. } );