Use destructor to handle lock file removal