make automatically reopen handle in case of transaction rollback