add close_after option to actions

to close the current card after action completes