persistence.commit callback can be undefined