Do not crash application when lock file is broken, refs #131