Separate planning and execution phase of the action from ActiveRecord hook

When entering run/finalize phase, it's expected the transaction of
planning phase to be committed, which is to guaranteed when starting
the execution from withing the transaction.