- fixed exit on error, couldn't remove the lock file.