Utilized action.leave instead of action.dispose