Remove lock at end of startup