I guess trigger_error() here won't be reached if custom quickmod action works properly, will it?
Anyway, it's not a big deal to add some boolean flag here.