in invoke callback. This prevents unfreed memory blocks when quiting Bledner with modal operator running.