Init shutdown

Break up `clar_test` into its component `_init`, `_run` and `_shutdown` so that callers can do some work between those stages of execution.