Add options object to specify which actions receive close action