Is this the correct way to handle the case of a bad lock?  Or should we use shutil.rmtree() and ignore any files that might've been placed in the .lock folder?