lock during close too