Remove cache if build fails

Add a comment explaining why only `src api` subcommands have this behavior.