for readability, the end statements look strange on their own line. you could define one global NullCallback function which takes any arguments and reuse it each time (might be simpler to write), or put the `end` on the same line here, or use the one-liner function syntax `(handler::XPStreamHandler) -> nothing`