remove lock if fail