Fix orderly shutdown when control-c, and fix rollback and autocommit issues for insert methods.