waylandsrc: more error handling