move flush on kernel trerminate into a vendor, theme bootstrap form