a crash caused by a splitbar would be created by place when the window is destorying; add some checks whether the parent is destorying in create widget functions