clean lock file at every exit point.