Added closeOnce