Fixes #3517 : Now handle exception when the lock file is already taken.
Merge pull request #228 from VinceMacBuche/bug_3517/Handle_error_node_deletion

Fixes #3517 : Now handle exception when the lock file is already taken.