i don't think you'll have self.lockfile.path if the exception happens, no?

you probably want to use _lockfile