close all open adapters before delete row, try to fix #264