Fixed indentation, changed exception logging to _lockfile