Add PreCommitEvent to enable auto save EventSourcedObjects when commit is called