Help for this page
eval { $lock->create() }; if (my $exception = My::Execption::Lock::Exists->caught()) { ... exit 0; } die $@ if $@;