Add an assert_exec() helper to remove verbose copypasta.

Quick detour for cleanup.