fix segfault on invalid toolbar / menu XML
add return stmnts to quit on errors