Step 11-12: Commit and write log.

Crash: