Add close wrapper and make it and read release the big lock