identify and remove 100cpu usage on db close