add close to shell file adaptor