When in debug, commit before starting new transaction