[BefunExec] Tried fixing non-closing after exiting main-window