close_connection/1 add emysql:is_commit_before_close/1

do  transaction commit check when close one connection, just for the exception use。