ajout commit false dans if connection closed