CleanupPreviousUpdateAction: refactor and add StopActionInternal am: d506deef54 am: bbbb012280 am: 1e29b681f0 am: 5faa1a2f0b

Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1439792

Change-Id: Iedd37ad59bf1b81d1b1fc0f864b6e2dbc136ccea