Fix autocommit fail exit