changed: CloseBuffer command so it is not so aggressive