Introduced application-wide close lock.