proto-shell: merge setup/teardown task into one