Committing state before restarting.