Adding try-catch block to the run function to always delete the created lock file, even if an exception occurs
Adding private delete lock file function
Fixing issue #40