Fix _close method.