output buffering defintions and the like)
connections might break things. Only-sending applications like syslog() do not need a newdata() handler, so added a check if that handler exists.